/*************************************************
 * File:    		SMView.h
 * Author:  	HouJiong <hou_jiong@163.com>
 * Brief:   		StoneMoneky project.
 *
 * Copyright (c) HouJiong
 *
 *************************************************/

/*
 * History:
 * =======================================
 * 2009-04-10 HouJiong <hou_jiong@163.com> created
 */
 
#ifndef _SMVIEW_H_
#define _SMVIEW_H_

#include <qwidget.h>
#include <qpixmap.h>

#include "SMtypedef.h"
#include "SMXMLDOM.h"
#include "SMJS.h"

class SMView: public QWidget
{
	Q_OBJECT
public:
	SMView(QWidget *parent = 0,const char* name = 0);
	bool loadXML(SMXMLDOM *xmldom);
	bool loadJS(SMJS *js);

protected:
    void paintEvent( QPaintEvent * );
    void mousePressEvent( QMouseEvent * );

private:
	
	SMJS *m_SMJS;
	SMXMLDOM *m_SMXMLDOM;

};

#endif //_SMVIEW_H_
